package cz.ctu.guiproject.client.formvalidation;

import android.widget.EditText;

public class IpValidator extends TextValidator {

	public IpValidator(EditText editText) {
		super(editText);
	}

	@Override
	public boolean validate(EditText editText) {
		if(ValidationService.isNotNull(editText) && ValidationService.isValidIPv4(editText)) {
			return true;
		}
		return false;
	}
}
